package com.dongge.action;

import com.opensymphony.xwork2.ActionSupport;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

/**
 * Created by Administrator on 2015/10/22.
 */
@Controller
@Scope("prototype")
public class CheckBoxAction extends ActionSupport{
    private Integer[] checks;

    public Integer[] getChecks() {
        return checks;
    }

    public void setChecks(Integer[] checks) {
        this.checks = checks;
    }

    @Override
    public String execute() throws Exception {
        if(checks != null)
        {
            System.out.println(checks);
        }
        else {
            System.out.println("ERROR");
        }
        return super.execute();
    }
}
